package game.breeze.assets;

import game.breeze.ani.Animation;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.TextureDict;
import com.badlogic.gdx.graphics.g2d.TextureRegion;

@Deprecated
public class StartAssets {

	public static Texture startBackgroud;

	public static TextureRegion startBackgroudRegion;

	public static Texture texture;

	public static Animation moveAni;
	public static Animation standAni;

	private StartAssets() {

	}

	public static void load() {
		startBackgroudRegion = new TextureRegion(new Texture(Gdx.files.internal("data/start.png")), 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
		texture = TextureDict.loadTexture("data/hero.png").get();
		moveAni = new Animation(.15f, 0, new TextureRegion(texture, 0, 0, 100, 100), new TextureRegion(texture, 100, 0, 100, 100), new TextureRegion(texture, 200, 0, 100, 100));
		standAni = new Animation(moveAni.getFrameDuration(), 0, moveAni.getKeyFrame(0));
	}

	public static void unload() {
		moveAni.dispose();
		standAni.dispose();
	}
}
